package com.api.tickets;

import com.st.entity.Result;
import com.st.entity.Ticket;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@RequestMapping("ticket1")
@FeignClient("st-ticket")
public interface ITicketsClient {
    @RequestMapping("/getTicketBy")
    public Ticket getTicketBy(@RequestParam("id")Integer id);

    @RequestMapping("/findById")
    public Ticket findById(@RequestParam("attractionsId") Integer attractionsId);

    @RequestMapping("delNum")
    public Result delNum(@RequestParam("delNum") String delNum);


}
